<template>
	<view class="navbar">
		<!-- <view class="navbar-logo"><image class="navbar-logo_img" src="../../static/logo.png" mode="scaleToFill"></image></view> -->
		<view class="navbar-address" @click="queryCity">
			<view class="navbar-address-text">{{city}}</view>
			<image src="../../static/sanjiao.png" mode=""></image>
			<!-- <u-icon style="margin-left: 5rpx;margin-top: 15rpx;" size="20" name="arrow-down"></u-icon> -->
		</view>
		<view class="navbar-search" @click="searchTap">
			<view class="text">请输入车辆名称或品牌</view>
			<view>
				<image src="../../static/sousuo.png" mode=""></image>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"navbar",
		props:{
			city:{
				type:String,
				default: ''
			}
		},
		data() {
			return {
			};
		},
		methods:{
			queryCity(){
				uni.navigateTo({
					url:'/pagesB/city/city'
				})
			},
			searchTap(){
				uni.navigateTo({
					url:'/pagesB/search/search'
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.text{
		border-left: 1px solid #EFEFEF;
		padding-left:50rpx ;
		font-family: PingFangSC-Regular;
		font-size: 30rpx;
		color: #D0D0D0;
		line-height: 70rpx;
		
	}
	.navbar{
		width: 686rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		box-shadow: 0 2px 16px 0 rgba(0,43,86,0.10);
		border-radius: 10rpx;
		box-sizing: border-box;
		height: 112rpx;
		background-color: $uni-bg-color;
		border-top: 2rpx solid #f5f5f5;
		position: absolute;
		padding: 0 49rpx;
		    left: 32rpx;
		    top: 270rpx;
		.navbar-logo{
			width: 84rpx;
			height: 60rpx;
			margin-right: 12rpx;
			.navbar-logo_img{
				width: 100%;
				height: 100%;	
			}
		}
		.navbar-address{
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-right: 30rpx;
			height: 112rpx;
			line-height: 112px;
			font-size: 32rpx;
			.navbar-address-text{
				color: #666;
				width: auto;
			}
			image{
				width: 10rpx;
				height: 8rpx;
				margin-left: 10rpx;
			}
		}
		.navbar-search{
			flex: 1;
			display: flex;
			.navbar-content-text{
				width: 100%;
				padding: 16rpx 20rpx;
				box-sizing: border-box;
				border-radius: 80rpx;
				font-size: 28rpx;
				color: #999;
				background-color: #f5f5f5;
			}
			image{
				width: 40rpx;
				height: 40rpx;
				    margin-left: 73rpx;
				    margin-top: 9rpx;
			}
		}
		.navbar-user{
			width: auto;
			height: 100%;
			display: flex;
			align-items: center;
			margin-left: 20rpx;
		}
	}
</style>
